-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix CICS connections breaking other ZE sessions #173
Conversation
85531d9
to
d3b74e1
Compare
39b54e9
to
7e3de0a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of thoughts - look generally good though.
37980ec
to
21eb530
Compare
e9be358
to
10de456
Compare
2509799
to
9c7abfc
Compare
@@ -93,11 +89,12 @@ export class CICSRegionsContainer extends TreeItem { | |||
* Count the number of total and active regions | |||
* @param regionsArray | |||
*/ | |||
private addRegionsUtility(regionsArray: [any]) { | |||
private addRegionsUtility(regionsArray: any[]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[any]
is an incorrect type (indicated an array with 1 item of type any)
999ab88
to
7614a24
Compare
@zFernand0 I'd like your opinion on this as it resolves an issue you found relating to self-signed certs. Majority of changes are in profileManagement.ts as it moves from Axios to the SDK which comes with changes in errors and response types. Lots of files are touched however because of the https import removal. With the current lack of automated testing (WIP), I'm recruiting as many people as possible to manually test this (@davenice, @enamkhan, @chinmdas, amongst others) but the more the merrier! I intend to squash my messy commits before merging 👍🏼 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, LGTM! 😋
Thanks for fixing up all the typing issues. 🙏
And also for creating the common toArray function 🥳
Finally, thanks a lot for removing axios
! 🙏
I know the primary purpose was to avoid messing with the reject unauthorized configuration of the https package, but I'm really happy with the little refactoring that happened here 🙏
@@ -99,7 +95,7 @@ export function getEnableTransactionCommand(tree: CICSTree, treeview: TreeView<a | |||
}); | |||
} | |||
|
|||
async function enableTransaction(session: imperative.AbstractSession, parms: { name: string; regionName: string; cicsPlex: string }): Promise<ICMCIApiResponse> { | |||
async function enableTransaction(session: imperative.AbstractSession, parms: { name: string; regionName: string; cicsPlex: string; }): Promise<ICMCIApiResponse> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that this is a common interface...
{ name: string; regionName: string; cicsPlex: string; }
Curious if we can type it as one 😋
Also, I know I have a draft PR (#14) about migrating a lot of these SDK-like functions to the packages/sdk
but I'm afraid that such PR might be a bit ambitious and also out of date 😋
I don't mind making some more updates and reducing the scope of it, if y'all would like 😋
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious if we can type it as one
Good plan, I'll add that onto this PR while we're already touching those methods.
Also, I know I have a draft PR (#14) about migrating a lot of these SDK-like functions to the
packages/sdk
but I'm afraid that such PR might be a bit ambitious and also out of date 😋
Now I'm more familiar with the monorepo I'll look over what you've got and comment over there. Seems silly to waste effort you've already done! 😎
My apologies for taking so long, 😅
Similar to Zowe Explorer, I think we don't have to worry about constantly force-pushing to your own branch and instead, we can choose to squash PRs when merging (as Dave suggested on another PR conversation/thread). Great work on this! 🙏 |
I'd love to see other people's thoughts/comments about their review/testing as well 🙏 |
I'm a fan of a tidy commit history so a habit I've found myself in! More for me than anything else 😂 |
I've had a go with:
I can access all of these systems at once without an issue. i'm seeing a possible regression around what happens if you connect to a plex but specify a regionName - it seems to be displaying the "All Programs" and similar menus, and nesting everything as if it's a whole plex. |
Good find @davenice! Will take a look now... Is that where you've specified a plex and region in the profile, not through any filtering |
yes that's right - I think the issue is in profileManagement where we're deciding whether we've specified a region or group, the code is thinking we specified a group. |
7614a24
to
1f3eb1e
Compare
1984e89
to
68d18e6
Compare
OK - so I think we've resolved the issues we know about. I've tested with SMSS now (had forgotten that before). Is there much else remaining to snag on this, @AndrewTwydell? I aspire to us getting this in this week ... if it's safe :-) |
Nothing more that's been mentioned or found, and lots of manual testing has now been done. Seems I've got some fun conflicts to resolve later and we can hopefully get it in this afternoon after a final nod from the reviewers 🙂 Be very good to finally have this problem sorted!!! |
68d18e6
to
f770bb9
Compare
Signed-off-by: Andrew Twydell <[email protected]>
Signed-off-by: Andrew Twydell <[email protected]>
Signed-off-by: Andrew Twydell <[email protected]>
Signed-off-by: Andrew Twydell <[email protected]>
Signed-off-by: Andrew Twydell <[email protected]>
Signed-off-by: Andrew Twydell <[email protected]>
Signed-off-by: Andrew Twydell <[email protected]>
Signed-off-by: Andrew Twydell <[email protected]>
Signed-off-by: Andrew Twydell <[email protected]>
Signed-off-by: Andrew Twydell <[email protected]>
Signed-off-by: Andrew Twydell <[email protected]>
b6f5401
to
2dc70f0
Compare
Co-authored-by: Dave Nice <[email protected]> Signed-off-by: Andrew <[email protected]>
2dc70f0
to
a7c83f1
Compare
Hey @zFernand0 - @enamkhan, @AndrewTwydell and I have given this a bash along with another dev who was seeing some of the issues. We're pretty confident that this is an improvement now (within the bounds that there isn't much automated testing). We'd like to get this in - are you happy? |
100% |
Release succeeded for the The following packages have been published:
Powered by Octorelease 🚀 |
What It Does
Review Checklist
I certify that I have:
Additional Comments
Resolves #159
Resolves #124